export const table1Columns = [
    {
        title: '序号',
        type: 'index',
        width: 80,
        align: 'center'
    },
    {
        title: '作物名称',
        align: 'center',
        key: 'name',
        editable: true
    },
    {
        title: '分类',
        align: 'center',
        key: 'classify',
        editable: true
    },
    {
        title: '生育周期',
        align: 'center',
        width: 100,
        key: 'syzq',
        render: (h, params) => {
            return h('div', {
                attrs: {
                    style: 'width: 50px;margin:auto auto;'
                }
            }, [
                h('a', {
                    attrs: {
                        innerHTML: params.row.syzq,
                        title: params.row.syzq,
                        href: '#/data_manage/growth_cycle',
                    }
                }, params.row.syzq)
            ]);
        }
    },
    {
        title: '推荐施肥',
        align: 'center',
        width: 100,
        key: 'handle',
        handle: ['edit']
    },
    {
        title: '种植计划',
        align: 'center',
        width: 100,
        key: 'handle',
        handle: ['edit']
    },
    {
        title: '操作',
        align: 'center',
        width: 200,
        key: 'handle',
        handle: ['edit', 'delete']
    }
];

export const table1Data = [
    {
        name: '春玉米001',
        classify: '粮食作物/玉米',
        syzq: '生育周期',
        images: 'http://gb.cri.cn/mmsource/images/2014/06/06/49/2593136740881584265.jpg'
    }
];

const tableData = {
    table1Columns: table1Columns,
    table1Data: table1Data
};

export default tableData;
